//
//  FavoriteModuleView.h
//  SecondPage
//
//  Created by xiong qi on 13-4-19.
//  Copyright (c) 2013年 winston. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyCarSQLHelp.h"

#define Favorite_Title          @"text"
#define Favorite_Content        @"content"
#define Favorite_Image_Middle   @"middleimage"
#define Favorite_Image_Large    @"bigimage"
#define Favorite_Root           @"RootPath"
#define Favorite_FileName       @"FileName"
#define Favorite_SelectID       @"SelectID"

@interface FavoriteModuleView : UIView{
    
    NSString * resourcePath;        //文件的路径
    NSArray  * templateFiles;       //所有需要显示的文件数据列表
    int selectIndex;                //选中项在数据库中的位置
    int parentselectIndex;          //上一个选项在数据库中的位置
    NSDictionary * selectData;      //选中项从文件中读取的数据
    NSString * categoryName;        //当前视图的文件类别
    NSString * autoID;
}

@property(nonatomic,retain)NSString * resourcePath;
@property(nonatomic,retain)NSArray  * templateFiles;
@property(nonatomic,assign)int selectIndex;
@property(nonatomic,assign)int parentselectIndex;
@property(nonatomic,retain)NSDictionary * selectData;
@property(nonatomic,retain)NSString * categoryName;
@property(nonatomic,retain)NSString * autoID;

- (id)initWithFrame:(CGRect)frame;
- (void)ReadConfig;
- (NSArray *)GetTableData:(int)index;
@end
